//
//  ZPZNetRequest+FinancialOtherInfo.m
//  项目二网络请求
//
//  Created by 张峥 on 16/7/23.
//  Copyright © 2016年 张峥. All rights reserved.
//

#import "ZPZNetRequest+FinancialOtherInfo.h"

@implementation ZPZNetRequest (FinancialOtherInfo)

+ (void)getFinancialOtherInfoComletion:(ZLReqComletion)comletion{
    [self sendRequestByParameters:nil Method:@"appFinancial/getFinancialOtherInfo" requestType:ZLApRequestPost Comletion:comletion];
}

+(void)getFinancialDetailid:(NSString *)Id comletion:(ZLReqComletion)comletion{
    
    
    NSMutableDictionary *numDic = [[NSMutableDictionary alloc]init];
    
    if (![LStringUtils isTextEmpty:Id]) {
        [numDic setObject:Id forKey:@"id"];
    }
    
    
    NSDictionary *resultDic = [NSDictionary dictionaryWithDictionary:[self getParametersPaeames:numDic]];
    [self sendRequestByParameters:resultDic Method:@"appAbroad/getChooseByYourselfDetail" requestType:ZLApRequestPost Comletion:comletion];
}

+(void)getFinancialListPageNum:(NSString *)pageNum pageSize:(NSString *)pageSize currencyId:(NSString *)currencyId consignId:(NSString *)consignId startTime:(NSString *)startTime endTime:(NSString *)endTime gainsStyle:(NSString *)gainsStyle keywords:(NSString *)keywords userId:(NSString *)userId comletion:(ZLReqComletion)comletion{
    NSMutableDictionary *numDic = [[NSMutableDictionary alloc]init];
    if (![LStringUtils isTextEmpty:pageNum]) {
        [numDic setObject:pageNum forKey:@"pageNum"];
    }
    if (![LStringUtils isTextEmpty:pageSize]) {
        [numDic setObject:pageSize forKey:@"pageSize"];
    }
    if (![LStringUtils isTextEmpty:currencyId]) {
        [numDic setObject:currencyId forKey:@"currencyId"];
    }
    if (![LStringUtils isTextEmpty:consignId]) {
        [numDic setObject:consignId forKey:@"consignId"];
    }
    if (![LStringUtils isTextEmpty:startTime]) {
        [numDic setObject:startTime forKey:@"startTime"];
    }
    if (![LStringUtils isTextEmpty:endTime]) {
        [numDic setObject:endTime forKey:@"endTime"];
    }
    if (![LStringUtils isTextEmpty:gainsStyle]) {
        [numDic setObject:gainsStyle forKey:@"gainsStyle"];
    }
    if (![LStringUtils isTextEmpty:keywords]) {
        [numDic setObject:keywords forKey:@"keywords"];
    }
    if (![LStringUtils isTextEmpty:userId]) {
        [numDic setObject:userId forKey:@"userId"];
    }
    NSDictionary *resultDic = [NSDictionary dictionaryWithDictionary:[self getParametersPaeames:numDic]];
    [self sendRequestByParameters:resultDic Method:@"appFinancial/getFinancialList" requestType:ZLApRequestPost Comletion:comletion];
}

@end
